using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEditor;

namespace TEngine
{
    [ExecuteInEditMode]
    public class TextMeshProEx : MonoBehaviour
    {
        TextMeshProUGUI TextMeshProUGUI;
        [SerializeField]
        bool m_Maskable = true;
        private void Awake()
        {
            TextMeshProUGUI = GetComponent<TextMeshProUGUI>();
        }
        void Start()
        {
        
        }

        // Update is called once per frame
        void Update()
        {
            if(!TextMeshProUGUI)
            {
                return;
            }
            if(TextMeshProUGUI.maskable != m_Maskable)
                TextMeshProUGUI.maskable = m_Maskable;
        }
    }
}
